﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EzDesk.DevHelper.EzMLGenerator
{
    public class LanguageLinkProcessor : RegexReplaceProcessor
    {
        public override string[] RegexStrs
        {
            get
            {
                return new string[] { 
                    @"<ez:target (?<content>.*?)><ez:text>",
                    @"<ez:target (?<attr>.*?)><ez:text>(?<content>.*?)</ez:text></ez:target>"
                };
            }
        }

        public override string[] ReplaceStrs
        {
            get
            {
                return new string[] { 
                    @"<ez:target [${content}]><ez:text>",
                    @"_${attr}${content}_"
                };
            }
        }
    }
}
